};
};
- gpio-export {
- compatible = "gpio-export";
-
- sff-p9-tx-disable {
- gpio-export,name = "sff-p9-tx-disable";
- gpio-export,output = <1>;
- gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
- };
- };
-
gpio-restart {
compatible = "gpio-restart";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
};
};
- i2c1: i2c-gpio-1 {
- compatible = "i2c-gpio";
- sda-gpios = <&gpio1 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ i2c-gpio-shared {
+ compatible = "i2c-gpio-shared";
scl-gpios = <&gpio1 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <2>;
#address-cells = <1>;
#size-cells = <0>;
+
+ i2c0: i2c@0 {
+ sda-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ i2c-gpio,delay-us = <2>;
+ };
+
+ i2c1: i2c@1 {
+ sda-gpios = <&gpio1 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ i2c-gpio,delay-us = <2>;
+ };
+ };
+
+ sfp0: sfp-p9 {
+ compatible = "sff,sfp";
+ i2c-bus = <&i2c0>;
+ tx-disable-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
+ mod-def0-gpio = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
sfp1: sfp-p10 {
compatible = "sff,sfp";
line-name = "poe-enable";
};
- sff_p9_gpios {
- gpio-hog;
- gpios = < 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>,
- < 11 GPIO_ACTIVE_HIGH>, /* los-gpio */
- < 12 GPIO_ACTIVE_LOW>; /* mod-def0-gpio */
- input;
- line-name = "sff-p9-gpios";
- };
-
led-controller {
compatible = "realtek,rtl8231-leds";
status = "disabled";
SWITCH_PORT(14, 7, internal)
SWITCH_PORT(15, 8, internal)
- /* TODO: fixed link SFP is not right */
- SWITCH_SFP_PORT(24, 9, 1000base-x)
+ port@24 {
+ reg = <24>;
+ label = "lan9";
+ pcs-handle = <&serdes4>;
+ phy-mode = "1000base-x";
+ phy-handle = <&phy24>;
+ managed = "in-band-status";
+ sfp = <&sfp0>;
+ };
port@26 {
reg = <26>;